<!DOCTYPE html><html><head><meta charset=utf-8><title>H3DU.FrameCounter</title></head><body><h1> H3DU.FrameCounter</h1><p><a href='index.html'>Back to documentation index.</a></p><a name='H3DU.FrameCounter'></a>
<h3> H3DU.FrameCounter()</h3>A class for finding the frame rate of an HTML rendering.
<p>This class is considered a supplementary class to the
Public Domain HTML 3D Library and is not considered part of that
library. <p>
To use this class, you must include the script "extras/frame.js"; the
class is not included in the "h3du_min.js" file which makes up
the HTML 3D Library. Example:<pre>
&lt;script type="text/javascript" src="extras/frame.js">&lt;/script></pre><h3> Methods</h3><ul><li><a href='#H3DU.FrameCounter_getFPS'>getFPS</a><br>Gets the calculated frames per second, based
on how often the update method was called.<li><a href='#H3DU.FrameCounter_update'>update</a><br>Updates the state for determining the frame count.</ul><a name='H3DU.FrameCounter_getFPS'></a>
<h3> H3DU.FrameCounter#getFPS()</h3>Gets the calculated frames per second, based
on how often the update method was called.<h4> Return Value</h4>Return value. (Type: Object)<a name='H3DU.FrameCounter_update'></a>
<h3> H3DU.FrameCounter#update()</h3>Updates the state for determining the frame count.
This method should be called once per frame.<h4> Return Value</h4>Return value. (Type: Object)<p><a href='index.html'>Back to documentation index.</a></p></body></html>
